// formPackage/pages/platformModule/companyMemberDetail/companyMemberDetail.js

import { queryCompanyMemberDetail } from "../../../../service/platform_service"
let app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    themeStyle: "",
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },



  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    if (app.globalData.themeStyle) {
      this.setData({
        themeStyle: app.globalData.themeStyle
      })
    }
  },

  //查询成员详情:
  queryCompanyMemberDetail() {
    wx.showLoading();
    queryCompanyMemberDetail().then(res => {
      wx.hideLoading();
      console.log("JJLog:查询到的成员详情是:" + JSON.stringify(res));
      if (res.code == 200) {

      }
    }).catch(err => {
      wx.hideLoading();
      wx.showToast({
        title: err || "查询失败",
        icon: "none"
      })
      console.error("JJLog:queryCompanyMemberDetail", err);
    })
  },



})